const views = require.context("../views", true, /\.vue$/);
const pages = {};
console.log(views.keys());
views
  .keys()
  .map(value => views(value))
  .filter(value => value.default)
  .forEach(value => {
    pages[value.default.name] = value.default;
  });
console.log(pages);
export default pages;
